package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.resp.information.ArticleBannerDTO;
import com.sikaryofficial.backend.domain.dto.req.information.ArticleBannerReq;
import com.sikaryofficial.backend.domain.entity.ArticleBanner;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 文章banner映射接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface ArticleBannerMapping {
    ArticleBannerMapping INSTANCE = Mappers.getMapper(ArticleBannerMapping.class);

    /**
     * 实体映射resp
     *
     * @param activityReq
     * @return
     */
    ArticleBannerDTO coverToDTO(ArticleBanner activityReq);
    /**
     * 实体映射req
     * @param activityReq
     * @return
     */
    ArticleBanner coverReqToEntity(ArticleBannerReq activityReq);
    /**
     * 实体映射resp
     *
     * @param activityList
     * @return
     */
    List<ArticleBannerDTO> coverToDTOList(List<ArticleBanner> activityList);
}
